#ifndef _MSG_H_
#define _MSG_H_

typedef struct
{
    char msg_head[20];
    unsigned char check_sum;
    char data[1024];
} Msg;

extern int write_msg(int sockfd, char *buff, size_t len);
extern int read_msg(int sockfd, char *buff, size_t len);

#endif